package com.guch.help.api;

import com.guch.help.bean.WallPaperResponse;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Query;


/**
 * ApiService接口 统一管理应用所有的接口
 * @author llw
 */
public interface ApiService {

    /**
     * 获取热门壁纸列表
     */
    @GET("/v1/vertical/vertical?limit=30&skip=180&adult=false&first=0&order=hot")
    Observable<WallPaperResponse> getWallPaper();

    @GET("v2/place?token=Z0QRZh6AGuYQlacM&lang=zh_CN")
    Observable<String> searchPlaces(@Query("query") String query);

}
